package com.rising.nio;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        //创建Scanner对象，接受从控制台输入
        /*Scanner input=new Scanner(System.in);
        //接受String类型
        String str=input.next();
        //输出结果
        System.out.println(str);

        System.out.println(1 & 2 - 1);
        System.out.println(2 & 2 - 1);*/

        String key  = "E";
        switch (key) {
            case "A":
                System.out.println("这是A");
                break;
            case "B":
                System.out.println("这是B");
                break;
            case "C":
            case "D":
                System.out.println("这是复用：" + key);
                break;
            default:
                System.out.println("这是默认");
                break;
        }
    }

}
